package com.freewater.javabase.demo.designpattern.command2.withundo.receiver;

/**
 * Created by FreeWater on 2017/4/4.
 */
public class Light {

	private String location;

	public Light(String location){
		this.location = location;
	}

	/**
	 * 点亮电灯
	 */
	public void on(){
		System.out.println(location + " light is on");
	}

	/**
	 * 关闭电灯
	 */
	public void off(){
		System.out.println(location + " light is off");
	}
}
